package cn.hl.hm.constants;

import org.apache.commons.lang3.StringUtils;

/**
 *  提现状态,0:提交申请 1：运营审核不通过 2：运营审核通过 3:财务审核不通过 4：财务通过未支付 5：财务通过已支付
 * 2017-12-26 21:46:34
 * @author tarzan
 *
 */
public enum WithrawalStatus {
	tjsq("0","提交申请"),
	yyshbtg("1","运营审核不通过"),
	yyshtg("2","运营审核通过"),
	cwshbtg("3","财务审核不通过"),
	cwshwzf("4","财务通过未支付"),
	cwshyzf("5","财务通过已支付");
	private String status;
	private String name;
	WithrawalStatus(String status, String name){
		this.name = name;
		this.status = status;
	}
	public static WithrawalStatus getWithrawalStatus(String status){
		if (StringUtils.isBlank(status)) {
			return null;
		}
		for (WithrawalStatus pm : values()) {
			if (pm.status.equals(status)) {
				return pm;
			}
		}
		return null;
	}
	public String getName() {
		return name;
	}
	public String getStatus() {
		return status;
	}
}
